package com.sqx.modules.pay.service;

import com.sqx.common.utils.Result;
import com.sqx.modules.task.entity.HelpOrder;

import javax.servlet.http.HttpServletRequest;
import java.math.BigDecimal;


/**
 * @author fang
 * @date 2020/2/26
 */
public interface WxService {

    Result payOrder(Long id, Integer classify, HttpServletRequest request) throws Exception;

    Result wxPayMember(Long ordersId, Integer classify, HttpServletRequest request) throws Exception;

    Result wxPayOrder(Long id, Integer classify, HttpServletRequest request) throws Exception;

    Result wxPayHelpOrder(Long relationId,HelpOrder helpOrder, Integer classify, HttpServletRequest request) throws Exception;

    String payBack(String resXml,Integer type);

    boolean refund(String ordersNo,BigDecimal refundMoney);

    Result payMoneyRepairFee(Long userId, Long ordersId, BigDecimal money, Integer payType, Integer orderType, HttpServletRequest request) throws Exception;

    Result wxPaySafetyMoney(Long userId, Integer classify, BigDecimal money, Integer type, HttpServletRequest request) throws Exception;
}